<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <script>
        function supprimerDiv () {
            var div1 = document.getElementById("zone_div_1");
            var div2 = document.getElementById("zone_div_2");
            
            document.body.removeChild(div1);
            document.body.removeChild(div2);
        }
      
        </script>
    </head>
    
    <body>
        <div id="zone_div_1">Texte de la zone DIV 1. </div>
        <form name="form1" action="">
            <input type="button" value="Supprimer les div !" onclick="supprimerDiv()">
        </form>
        <div id="zone_div_2">Texte de la zone DIV 2. </div>
    </body>
</html>
